﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LCA.Community.DAL.Model;

namespace LCA.Community.DAL.Test.ModelFactories
{
    public class PhrasesFactory
    {
        int _count = 0;

        public PhrasesFactory()
        {

        }

        public Phrase CreateEntity(string user, string author)
        {
            var phrase = new Phrase(
                                user,
                                author,
                                String.Format("This is a phrase {0} from {1} on the {2} wall",_count, user, author)
                                );
            phrase.RowKey = "test." + phrase.RowKey;
            _count++;
            return phrase;
        }
    }
}
